package com.lichuang.fruitvarietysm.manage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lichuang.fruitvarietysm.manage.entity.User;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author shuaihang
 * @since 2019-07-06
 */
public interface IUserService extends IService<User> {

    User queryAdminUser(User user);

    /**
     * 在redis中保存用户的登录状态
     * @param user
     * @param response
     */
    void saveUserWithRedis(User user, HttpServletResponse response);

}
